<div class="page-content">
	<!-- BEGIN PAGE HEADER-->
	<div class="row">
		<div class="col-md-12">
			<!-- BEGIN PAGE TITLE & BREADCRUMB-->
			<h3 class="page-title">
			Newsletter
			</h3>
			<ul class="page-breadcrumb breadcrumb">
				<li>
					<i class="fa fa-home"></i>
					<a href="">
						Home
					</a>
					<i class="fa fa-angle-right"></i>
				</li>
				<li>
					<a href="javascript:void(0)">
						Newsletter
					</a>
				</li>

			</ul>
			<!-- END PAGE TITLE & BREADCRUMB-->
		</div>
	</div>
	<!-- END PAGE HEADER-->
	<!-- BEGIN PAGE CONTENT-->
	<div class="row">
		<div class="col-md-12">
			<!-- BEGIN EXAMPLE TABLE PORTLET-->
			<div class="portlet box light-grey">
				<div class="portlet-title">
					<div class="caption">
						<i class="fa fa-globe"></i>Managed table
					</div>
				</div>
				<div class="portlet-body">
					<div class="table-toolbar">
						<div class="btn-group">
							<a href="<?php echo $this->Admin->admin_url() ?>newsletter/add" class="btn green">
							Add_new <i class="fa fa-plus"></i>
							</a>
						</div>
					</div>
					<table class="table table-striped table-bordered table-hover" id="sample_1">
					<thead>
					<tr>
						<th width="5%" class="align_center">
							nu
						</th>
						<th width="40%">
							 Email
						</th>
						<th width="10%" class="align_center">
							 Date add
						</th>
						<th width="15%" class="align_center">
							 Actions
						</th>
					</tr>
					</thead>
					<tbody>
                        <?php
                            $i = 1;
                            foreach($newsletter_list as $value)
                            {
                        ?>
    					<tr class="odd gradeX">
    						<td class="align_center">
    							<?php echo $i++ ?>
    						</td>
    						<td>
    							<?php echo $value['Newsletter']['email'] ?>
    						</td>
    						<td class="align_center">
    							<?php echo $value['Newsletter']['date_add'] ?>
    						</td>
    						<td class="align_center">
    							<div class=" btn-group-xs">
                                    <a href="javascript:void(0)" class="btn red config delete_newsletter" newsletter_id="<?php echo $value['Newsletter']['id'] ?>">Delete</a>
								</div>
    						</td>
    					</tr>
                        <?php
                            }
                        ?>
					</tbody>
					</table>
				</div>
			</div>
			<!-- END EXAMPLE TABLE PORTLET-->
		</div>
	</div>
	<!-- END PAGE CONTENT-->
</div>